package test01;

public class test01 {
    public static void main(String[] args) {
        int num=getSum(5);
        System.out.println(num);
    }

    private static int getSum(int i) {
        if(i==1){
            return 1;
        }else {
            return i*getSum(i-1);
        }




    }
}
